<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>添加扣量规则</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
</head>
<body>

<div class="layui-form" lay-filter="layuiadmin-form-role" id="layuiadmin-form-role" style="padding: 20px 30px 0 0;">


    <div class="layui-form-item">
        <label class="layui-form-label">投放号</label>
        <div class="layui-input-block">
            <select name="channel_id" lay-search>
                <option value="">请选择投放号</option>
                {foreach $channels as $k => $v}
                <option value="{$v.id}">{$v.account}</option>
                {/foreach}
            </select>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">用户群体</label>
        <div class="layui-input-block">
            <input type="radio" name="user_group" value="0" title="全部">
            <input type="radio" name="user_group" value="1" title="已充值" checked>
            <div class="layui-form-mid layui-word-aux">所有投放号下注册的前500个读者不扣订单</div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">满注册天数</label>
            <div class="layui-input-inline" style="width: 100px;">
                <input type="number" name="register_day" placeholder="" value="15" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid">-</div>
            <div class="layui-input-inline" style="width: 100px;">
                <input type="checkbox" checked="" name="register_judg" lay-skin="switch" lay-filter="register" lay-text="开|关">

            </div>
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">未登录小时</label>
            <div class="layui-input-inline" style="width: 100px;">
                <input type="number" name="login_hour" placeholder="" value="2" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid">-</div>
            <div class="layui-input-inline" style="width: 100px;">
                <input type="checkbox" name="login_judg" lay-skin="switch" lay-filter="login" lay-text="开|关">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">比例</label>
        <div class="layui-input-block">
            <input type="text" name="odds" id="odds" required lay-verify="required" placeholder="请输入扣量比例" autocomplete="off" class="layui-input" value="">
            <div class="layui-form-mid layui-word-aux">请输入比例，0.01代表100笔扣1笔，为1代表全部扣，被扣订单不管有无支付，在所属代理后台都不能看到，不参与报表计算</div>
        </div>
    </div>


    <div class="layui-form-item layui-hide">
        <button class="layui-btn" lay-submit lay-filter="LAY-user-role-submit" id="LAY-user-role-submit">提交</button>
    </div>
</div>
<script src="/static/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '/static/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form'], function(){
        var $ = layui.$
            ,form = layui.form ;
    })
</script>
</body>
</html>